package com.mg.plugin.cropgrow.entity;

public class CropGrowDateData {
    private String plantType;

    private String year;

    private String stationNum;
    private String stationName;
    private String stationCity;
    private String cropType;

    //当量积温
    private double equAccTemp;
    //插播日期
    private String plantDay;
    private String leaf12;
    private String leaf30;
    //揭膜期
    private String leafFU;
    //插秧始期
    private String riceTrans;
    //分蘖始期
    private String tiller;
    private String leaf37;
    //失叶始期
    private String lastLeaf;
    private String leaf66;
    //有效分蘖
    private String validTiller;
    //分蘖高峰
    private String highTiller;
    //分蘖结束
    private String endTiller;
    //幼穗始期
    private String youngEar;
    //止叶期
    private String endLeaf;
    //出穗始期
    private String earStage;
    private double KKL;
    private double groutPro;

    public CropGrowDateData(CropGrowData data, String plantDay) {
        this.plantType = data.getPlantType();
        this.year = data.getYear();
        this.stationNum = data.getStationNum();
        this.stationName = data.getStationName();
        this.stationCity = data.getStationCity();

        this.plantDay = plantDay;
    }

    public String getPlantType() {
        return plantType;
    }

    public void setPlantType(String plantType) {
        this.plantType = plantType;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getStationNum() {
        return stationNum;
    }

    public void setStationNum(String stationNum) {
        this.stationNum = stationNum;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getStationCity() {
        return stationCity;
    }

    public void setStationCity(String stationCity) {
        this.stationCity = stationCity;
    }

    public String getCropType() {
        return cropType;
    }

    public void setCropType(String cropType) {
        this.cropType = cropType;
    }

    public double getEquAccTemp() {
        return equAccTemp;
    }

    public void setEquAccTemp(double equAccTemp) {
        this.equAccTemp = equAccTemp;
    }

    public String getPlantDay() {
        return plantDay;
    }

    public void setPlantDay(String plantDay) {
        this.plantDay = plantDay;
    }

    public String getLeaf12() {
        return leaf12;
    }

    public void setLeaf12(String leaf12) {
        this.leaf12 = leaf12;
    }

    public String getLeaf30() {
        return leaf30;
    }

    public void setLeaf30(String leaf30) {
        this.leaf30 = leaf30;
    }

    public String getLeafFU() {
        return leafFU;
    }

    public void setLeafFU(String leafFU) {
        this.leafFU = leafFU;
    }

    public String getRiceTrans() {
        return riceTrans;
    }

    public void setRiceTrans(String riceTrans) {
        this.riceTrans = riceTrans;
    }

    public String getTiller() {
        return tiller;
    }

    public void setTiller(String tiller) {
        this.tiller = tiller;
    }

    public String getLeaf37() {
        return leaf37;
    }

    public void setLeaf37(String leaf37) {
        this.leaf37 = leaf37;
    }

    public String getLastLeaf() {
        return lastLeaf;
    }

    public void setLastLeaf(String lastLeaf) {
        this.lastLeaf = lastLeaf;
    }

    public String getLeaf66() {
        return leaf66;
    }

    public void setLeaf66(String leaf66) {
        this.leaf66 = leaf66;
    }

    public String getValidTiller() {
        return validTiller;
    }

    public void setValidTiller(String validTiller) {
        this.validTiller = validTiller;
    }

    public String getHighTiller() {
        return highTiller;
    }

    public void setHighTiller(String highTiller) {
        this.highTiller = highTiller;
    }

    public String getEndTiller() {
        return endTiller;
    }

    public void setEndTiller(String endTiller) {
        this.endTiller = endTiller;
    }

    public String getYoungEar() {
        return youngEar;
    }

    public void setYoungEar(String youngEar) {
        this.youngEar = youngEar;
    }

    public String getEndLeaf() {
        return endLeaf;
    }

    public void setEndLeaf(String endLeaf) {
        this.endLeaf = endLeaf;
    }

    public String getEarStage() {
        return earStage;
    }

    public void setEarStage(String earStage) {
        this.earStage = earStage;
    }

    public double getKKL() {
        return KKL;
    }

    public void setKKL(double KKL) {
        this.KKL = KKL;
    }

    public double getGroutPro() {
        return groutPro;
    }

    public void setGroutPro(double groutPro) {
        this.groutPro = groutPro;
    }

    @Override
    public String toString() {
        if (plantType.equals("A")) {
            return year + "/" + stationNum +
                    "," + year +
                    "," + stationNum +
                    "," + stationName +
                    "," + stationCity +
                    "," + plantDay +
                    "," + leaf12 +
                    "," + leaf30 +
                    "," + leafFU +
                    "," + riceTrans +
                    "," + tiller +
                    "," + leaf37 +
                    "," + lastLeaf +
                    "," + leaf66 +
                    "," + validTiller +
                    "," + highTiller +
                    "," + endTiller +
                    "," + youngEar +
                    "," + endLeaf +
                    "," + earStage +
                    "," + KKL +
                    "," + groutPro;
        }
        return year + "/" + stationNum +
                "," + year +
                "," + stationNum +
                "," + stationName +
                "," + stationCity +
                "," + plantDay +
                "," + leaf12 +
                "," + leaf30 +
                "," + tiller +
                "," + leaf37 +
                "," + lastLeaf +
                "," + leaf66 +
                "," + validTiller +
                "," + highTiller +
                "," + endTiller +
                "," + youngEar +
                "," + endLeaf +
                "," + earStage +
                "," + KKL +
                "," + groutPro;
    }
}
